/*
 * =====================================================================================
 *
 *       Filename:  basicthread1.c
 *
 *    Description:  Basic thread operation
 *
 *        Version:  1.0
 *        Created:  12-04-24 09:48:03 AM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  YOUR NAME (), 
 *   Organization:  
 *
 * =====================================================================================
 */
#include <stdlib.h>
#include <pthread.h>
#include <stdio.h>

void *thread1(void* param){
	while(1){
		printf("Hello!!\n");
	}
}

void *thread2(void* param){
	while(1){
		printf("How are you?\n");
	}
}

int main(){
	int status;

	pthread_t tid1, tid2;

	pthread_create(&tid1, NULL, thread1, NULL);
	pthread_create(&tid2, NULL, thread2, NULL);
	pthread_join(tid1, NULL);
	pthread_join(tid2, NULL);
	return 0;
}
